function News(){
	var self = this;
	
	self.init = function(){
		
		$(".fileFromSys").live("click", function(){
			
			var id_file = $(this).find(".id_file").val();
			var thumb = $(this).parent().find("img").attr("src");
			
			$("#id_file").val(id_file);
			$("#img").attr("src", thumb);
		});
	};
	
	self.deletePicture = function(){
		$("#id_file").val("");
		$("#img").attr("src", "");
	}
}

var news = new News();

$(document).ready(function(){
	news.init();
});